package com.ruoyi.qsng.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户下订单信息对象 t_user_purchase
 * 
 * @author gk
 * @date 2023-07-15
 */
@Data
public class TUserPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 学员姓名 */
    @Excel(name = "学员姓名")
    private String name;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 是否代购 0否1是 */
    @Excel(name = "是否代购 0否1是")
    private int isOwn;

    /** 民族 */
    @Excel(name = "民族")
    private String nation;

    /** 身份证 */
    @Excel(name = "身份证")
    private String idCard;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 家长姓名 */
    @Excel(name = "家长姓名")
    private String parentName;

    /** 家长电话 */
    @Excel(name = "家长电话")
    private String parentPhone;

    /** 学校 */
    @Excel(name = "学校")
    private String school;

    /** 年级 */
    @Excel(name = "年级")
    private String grade;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderId;

    /** 用户唯一标识 */
    @Excel(name = "用户唯一标识")
    private String openId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setNation(String nation) 
    {
        this.nation = nation;
    }

    public String getNation() 
    {
        return nation;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setParentName(String parentName) 
    {
        this.parentName = parentName;
    }

    public String getParentName() 
    {
        return parentName;
    }
    public void setParentPhone(String parentPhone) 
    {
        this.parentPhone = parentPhone;
    }

    public String getParentPhone() 
    {
        return parentPhone;
    }
    public void setSchool(String school) 
    {
        this.school = school;
    }

    public String getSchool() 
    {
        return school;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("age", getAge())
            .append("nation", getNation())
            .append("idCard", getIdCard())
            .append("phone", getPhone())
            .append("parentName", getParentName())
            .append("parentPhone", getParentPhone())
            .append("school", getSchool())
            .append("grade", getGrade())
            .append("orderId", getOrderId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("openId", getOpenId())
            .toString();
    }
}
